package com.xybian.services;

import com.xybian.common.CommonResult;
import com.xybian.entity.SysUser;
import org.apache.tomcat.websocket.AuthenticationException;

public interface LoginService {
    /**
     * 登录
     * @param user
     * @return
     */
    CommonResult login(SysUser user) throws AuthenticationException;

    /**
     * 退出登录
     * @return
     */
    CommonResult logout();
}
